package main

import (


	"fyne.io/fyne/v2"


	"fyne.io/fyne/v2/theme"
	"fyne.io/fyne/v2/widget"
	"fyne.io/fyne/v2/layout"
)


func (e *editor)loadUI(myWin fyne.Window){   
	toolbar := widget.NewToolbar(
	&widget.ToolbarAction{Icon:theme.FolderOpenIcon(), OnActivated:e.fileOpen },
	&widget.ToolbarAction{Icon:theme.ConfirmIcon(), OnActivated:e.fileTrans},
	)	

	mainText := widget.NewLabel("please select excel file ,then transform to a new one!")
	e.win = myWin	
	content := fyne.NewContainerWithLayout(layout.NewBorderLayout(toolbar, nil, nil, nil), toolbar, mainText)

	myWin.SetContent(content)
	myWin.ShowAndRun()
  }